Skip to content

Add automated SDK example sync with dynamic code imports#70

Open
GreatSoshiant wants to merge 21 commits intomasterfrom
add-submodule
Open

Add automated SDK example sync with dynamic code imports#70
GreatSoshiant wants to merge 21 commits intomasterfrom
add-submodule

Conversation

@GreatSoshiant
Copy link
Member

@GreatSoshiant GreatSoshiant commented Jun 18, 2025

In this PR:

  1. 🤖 Automated example updates - Daily GitHub Actions sync external examples from stylus-sdk-rs
  2. 📝 Live code imports - New API endpoint + FileCodeBlock component dynamically import code from repo files
  3. 📁 Repository restructuring - Renamed applications/ → internal/, removed basic_examples/, added external/ from submodule
  4. Self-maintaining docs - Code examples automatically stay current and working

@vercel
Copy link

vercel bot commented Jun 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
stylus-by-example ✅ Ready (Inspect) Visit Preview Aug 5, 2025 8:53pm

@GreatSoshiant GreatSoshiant marked this pull request as draft June 18, 2025 20:02
@GreatSoshiant GreatSoshiant marked this pull request as ready for review August 5, 2025 19:56
Copy link
Collaborator

@chrisco512 chrisco512 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work overall, just need to align all the examples to 0.9. Some of the app examples have not been bumped. If those are too complicated we can upgrade them in a subsequent PR. However, many of the basic examples are using 0.10.0-beta for the SDK version number.

[dependencies]
alloy-primitives = "1.0"
alloy-sol-types = "1.0"
stylus-sdk = "0.10.0-beta.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we stick with 0.9.0 here? I don't think there are any dependencies on 0.10.0 right?

alloy-primitives = "1.0"
alloy-sol-types = "1.0"
sha3 = "0.10"
stylus-sdk = "0.10.0-beta.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, if not absolutely necessary, let's reduce to 0.9.0

alloy = { version = "1.0", features = ["contract", "signer-local", "rpc-types", "sha3-keccak"] }
eyre = "0.6"
tokio = "1.44"
stylus-sdk = { version = "0.10.0-beta.0", features = ["stylus-test"] }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another

[dependencies]
alloy-primitives = "1.0"
alloy-sol-types = "1.0"
stylus-sdk = "0.10.0-beta.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

[dependencies]
alloy-primitives = "1.0"
alloy-sol-types = "1.0"
stylus-sdk = "0.10.0-beta.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this example needs to be bumped up to 0.9

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also prob needs a version bump to 0.9

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version bump

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version bump

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version bump

@chrisco512 chrisco512 mentioned this pull request Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants